package library;


class Test{
	
	public String trunc(String inputString){	
		
		if(inputString.length()>10){
			
			inputString=inputString.substring(0,10)+"...";
		}
		
		return inputString;
		
	}
	
}


public class Sample{
	
	public static void main(String[] args) {
	Test test = new Test();
	String str=test.trunc("1234567");
	System.out.println("str   : " +str);
	}

}
